package com.hotleproject.service.impl;

import com.hotleproject.mapper.AdminiOperaMapper;
import com.hotleproject.pojo.Adminiope;
import com.hotleproject.service.AdminiOperaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AdminiOperaServiceImpl implements AdminiOperaService {
    @Autowired
    private AdminiOperaMapper adminiOperaMapper;

    @Override
    public int getOpeCount() {
        return this.adminiOperaMapper.getOpeCount();
    }

    @Override
    public List<Adminiope> selectAllOpe(int pageNo, int pageSize) {
        return this.adminiOperaMapper.selectAllOpe(pageNo,pageSize);
    }

    @Override
    public void insertope(String AdminiName,String operationThing,String operationDate) {
        this.adminiOperaMapper.insertope(AdminiName,operationThing,operationDate);
    }
}
